<?
//引入所有子系统信息
include_once("../../../common/script/extender_import.php");


//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
include_once("script/this_plate.php");



//获取板块的设置
include_once("../model/setting.php");




//根据页面数量信息，筛选信息，创造url，供页码,跳转等使用
include_once("script/set_url.php");




//拆成数组，用于循环比较
$tag_array = explode(";", $setting['basic']['tag']);



//按结构输出分类树
$category=select_lines_all_items($table_prefix.$this_plate['table']['category'],$sort,
    "parent_nid = 'root' and (delete_status != '已删除' or delete_status is null)","");




//循环，查找数据库中，parent_nid = 当前的 nid的值
foreach($category as $key=>$value)
{
    $category[$key]['level2']=select_lines_all_items($table_prefix.$this_plate['table']['category'],$sort,
        "parent_nid = '{$value['nid']}' and (delete_status != '已删除' or delete_status is null) ","");



}




?>

